﻿<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch"
          action="${request.getContextPath()}/wipComponentunit/wipComponentunit?id=${c1?.id}" method="post">
        <div class="bjui-searchBar">
            <g:hiddenField name="SYS_QUERY_NAME" value="wipComponentunit"/>
            <g:hiddenField name="EXPORT_CONTENT_NAME" value="Excel"/>
            <label>产品名称：</label>
            <input name='part_name' value="${part_name}" size="18"/>
            <label>扩散批号：</label>
            <input name="SUBSTRATE_ID1" value="${SUBSTRATE_ID1}" size="18"/>
            <label>芯片名称：</label>
            <input name='CUSTOMER_PART_ID' value="${CUSTOMER_PART_ID}" size="15"/>
            <label>封装形式：</label>
            <input name="RESERVED1" value="${RESERVED1}" size="18"/><br/>
            <label>客户订单：</label>
            <input name="CUSTOMER_ORDER" value="${CUSTOMER_ORDER}" size="18"/>
            <label>开始日期<strong><span class="text-danger">*</span></strong>：</label>
            <input type="text" name="startTime" class="form-control"
                   data-toggle="datepicker" data-pattern="yyyy-MM-dd HH:mm:ss"
                   size="18" id="start-date-input" readonly value="${startTime.format('yyyy-MM-dd HH:mm:ss')}">&nbsp;
            <label>结束日期<strong><span class="text-danger">*</span></strong>：</label>
            <input type="text" name="endTime" class="form-control"
                   data-toggle="datepicker" data-pattern="yyyy-MM-dd HH:mm:ss"
                   size="18" id="end-date-input" readonly value="${endTime.format('yyyy-MM-dd HH:mm:ss')}">&nbsp;
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <button type="button" class="btn-blue"
                    onclick="javascript:bjuiExportExl('#pagerForm', '${request.getContextPath()}/wipComponentunit/exportExcel1')"
                    data-icon="file-excel-o" title="导出Excel">导出Excel文件</button>&nbsp;

        </div>
    </form>
</div>
<g:if test="${wipComponentunit.size > 0}">
    <div class="bjui-pageContent">

        <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
            <thead>
            <tr>
                <th width="60" rowspan="2">NO.</th>
                <th width="150" rowspan="2">订单号</th>
                <th width="80" rowspan="2">封装形式</th>
                <th width="120" rowspan="2">产品名称</th>
                <th width="120" rowspan="2">芯片名称</th>
                <th width="100" rowspan="2">扩散批号</th>
                <th width="80" rowspan="2">片量</th>
                <th width="80" rowspan="2">封装数量(Kpcs)</th>
                <th width="70" colspan="2" align="center">期初在制品</th>
                <th width="70" colspan="2" align="center">期末在制品</th>
            </tr>
            <tr>
                <th width="70">片数</th>
                <th width="70">颗粒</th>
                <th width="70">片数</th>
                <th width="70">颗粒</th>
            </tr>
            </thead>
            <tbody>
            <g:each in="${wipComponentunit}" status="i" var="tableInstance">
                <tr>
                    <td width="60">${i + 1}</td>
                    <td width="120">${tableInstance.PARTNER_ORDER}</td>
                    <td width="120">${tableInstance.RESERVED1}</td>
                    <td width="80">${tableInstance.part_name}</td>
                    <td width="100">${tableInstance.MATERIAL_NAME}</td>
                    <td width="80">${tableInstance.PARTNER_lot_id}</td>
                    <td width="80">${tableInstance.main_qty}</td>
                    <td width="80">${tableInstance.XPJ}</td>
                    <td width="80">${tableInstance.START_MAIN_QTY}</td>
                    <td width="80">${tableInstance.START_SUB_QTY}</td>
                    <td width="80">${tableInstance.END_MAIN_QTY}</td>
                    <td width="80">${tableInstance.END_SUB_QTY}</td>
                </tr>
            </g:each>
            %{--<tr>--}%
            %{--<td width="60" colspan="4">合计</td>--}%
            %{--<td width="80"colspan="7">${sumNum}</td>--}%
            %{--</tr>--}%
            </tbody>
        </table>

    </div>
</g:if>

%{--
<script type="text/javascript">
    $(function () {
        $.CurrentNavtab.find('#start-date-input,#end-date-input').datetimepicker({
            format:'yyyy-mm-dd hh',
            autoclose: true,
            todayBtn: true,
            startView:1,
            minView:1,
            pickerPosition: "bottom-left",
            language:'zh-CN',
            startDate:'2016-01-01'
        });

        $.CurrentNavtab.find('.selectpicker').selectpicker();
    })
</script>--}%
